<template>
  <div id="app">
      <router-link to="/Login">登录页面</router-link>
      <router-link to="/Home">主页面</router-link>

      <input type="button" >
      <keep-alive includ="My">
          <router-view></router-view>
      </keep-alive>

  </div>
</template>

<script>


export default {
  name: 'App',
  components: {},
  methods:{
      pushShow(){
          this.$router.push({
              name:'My',
              params:{
                  id:123
              },
              query:{
                  name:'zhangsan'

              },
          })
      },
      replaceShow(){
          this.$router.replace({
              name:'My',
              params:{
                  id:123
              },
              query:{
                  name:'zhangsan'

              },
          })
      }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
